/**
 * 
 */
package edu.cmich.cps.cps240.partyprincesspalace.hw06;

import static org.junit.Assert.*;

import java.awt.Rectangle;

import org.junit.Test;

/**
 * @author Josh
 *
 */
public class OutputBusTest {

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.OutputBus#setName(java.lang.String)}.
	 */
	@Test
	public final void testSetName() {
		Rectangle rec = new Rectangle();
		OutputBus outbus = new OutputBus(rec);
		OutputBus out2 = new OutputBus(rec);
		assertFalse(outbus.getName().compareTo(out2.getName()) == 0);
		outbus.setName("");
		assertTrue("".compareTo(outbus.getName()) == 0);
		outbus.setName(null);
		assertEquals(null, outbus.getName());
	}

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.OutputBus#writeObject(java.io.ObjectOutputStream)}.
	 */
	@Test
	public final void testWriteObject() {
		//Can't test this
	}

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.OutputBus#readObject(java.io.ObjectInputStream)}.
	 */
	@Test
	public final void testReadObject() {
		//Can't test this
	}

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.OutputBus#OutputBus(java.lang.String, java.awt.Rectangle)}.
	 */
	@Test
	public final void testOutputBusRectangle() {
		Rectangle rec = new Rectangle();
		OutputBus outbus = new OutputBus(rec);
		assertNotNull(outbus);
	}

	/**
	 * Test method for {@link edu.cmich.cps.cps240.partyprincesspalace.hw06.OutputBus#OutputBus(edu.cmich.cps.cps240.partyprincesspalace.hw06.OutputBus)}.
	 */
	@Test
	public final void testOutputBusOutputBus() {
		Rectangle rec = new Rectangle();
		OutputBus outbus = new OutputBus(rec);
		assertNotNull(outbus);
	}

}
